import 'package:flutter/material.dart';
import 'package:flutter_framework/views/home/models/find_item_model.dart';
import 'package:get/get.dart';

class HomeCtrl extends GetxController {
  static HomeCtrl get to => Get.find<HomeCtrl>();
  var count = 0.obs;
  RxList<FindItemModel> findList = RxList<FindItemModel>.of([
    FindItemModel(seqId: 0, orderId: '123', nickName: '快乐男孩'),
    FindItemModel(seqId: 1, orderId: '456', nickName: '快乐女孩'),
    FindItemModel(seqId: 2, orderId: '465', nickName: '快乐'),
    FindItemModel(seqId: 3, orderId: '234', nickName: '快乐孩'),
    FindItemModel(seqId: 4, orderId: '211', nickName: '23福袋'),
    FindItemModel(seqId: 5, orderId: '56', nickName: '阿斯蒂芬'),
  ]);

  increment() {
    count++;
    update();
  }

  @override
  void onInit() {
    // TODO: implement onInit
    debugPrint('初始化 getx home ctrl');
    super.onInit();
  }
}
